<?php
/**
* The following variables are available in this template:
* - $this: the CrudCode object
*/
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */

<?php
$label = $this->pluralize($this->class2name($this->modelClass));
echo "\$this->breadcrumbs=array(
	'$label'=>array('index'),
	'Manage',
);\n";
?>
?>
<a href="" class="btn btn-default">Create</a>
<div id="" class="admin-main-wrapper form-inline">
    <div class="dataTables_wrapper">
        <?php echo "<?php"; ?> $this->widget('zii.widgets.grid.CGridView', array(
        'id'=>'<?php echo $this->class2id($this->modelClass); ?>-grid',
        'dataProvider'=>$model->search(),
        'filter'=>$model,
        'columns'=>array(
        <?php
        $count = 0;
        foreach ($this->tableSchema->columns as $column) {
            if (++$count == 7)
                echo "\t\t/*\n";
            echo "\t\t'" . $column->name . "',\n";
        }
        if ($count >= 7)
            echo "\t\t*/\n";
        ?>
        array(
        'class'=>'CButtonColumn',

        ),
        ),
        )); ?>
    </div>
</div>